$webwork.htmlEncode($page.space.name) : 2 Maven Quickstart
This page last changed on Nov 07, 2007 by cholmes.
Building and Running GeoServer with Maven . In this Quickstart you will:
Source Code
CompilingMaven build commands are executed from the command line. Change directory to the root of the geoserver source tree and execute the following command: [/dev]% cd geoserver [/dev/geoserver]% mvn compile This command will first download dependencies into your local repository, then compile all modules A successful compilation should result in output similar to the following. [GEOSDEV:INFO] [GEOSDEV:INFO] [GEOSDEV:INFO] ------------------------------------------------------------------------ [GEOSDEV:INFO] Reactor Summary: [GEOSDEV:INFO] ------------------------------------------------------------------------ [GEOSDEV:INFO] GeoServer ............................................. SUCCESS [GEOSDEV:0.475s] [GEOSDEV:INFO] GeoServer Main Module ................................. SUCCESS [GEOSDEV:18.484s] [GEOSDEV:INFO] GeoServer Web Feature Service Module .................. SUCCESS [GEOSDEV:3.421s] [GEOSDEV:INFO] GeoServer Configuration Deployment PlugIn ............. SUCCESS [GEOSDEV:3.853s] [GEOSDEV:INFO] GeoServer Web Application Module ...................... SUCCESS [GEOSDEV:6.500s] [GEOSDEV:INFO] ------------------------------------------------------------------------ [GEOSDEV:INFO] ------------------------------------------------------------------------ [GEOSDEV:INFO] BUILD SUCCESSFUL [GEOSDEV:INFO] ------------------------------------------------------------------------ [GEOSDEV:INFO] Total time: 33 seconds [GEOSDEV:INFO] Finished at: Sun May 21 20:19:07 GMT+01:00 2006 [GEOSDEV:INFO] Final Memory: 9M/28M [GEOSDEV:INFO] ------------------------------------------------------------------------
BuildingThe term bulding refers to installing the geoserver modules into your local maven repository. The build workflow is identical to the compilation workflow. From the root of the geoserver source tree: [/dev/geoserver]% mvn install
Building the Web moduleSee here for the information about how GeoServer configurations work. When building the web module a particular configuration must be specified. A configuration is specified with two properties:
By default the web module is built with the "minimal" configuration which located directly in the web module itself. This configuration is empty and not much to look at Alternate configurations are located in the subversion repository . Let's check out a configuration now: [/dev/geoserver]% cd ..
[/dev/]% mkdir configuration
[/dev/]% cd configuration
[/dev/configuration]% svn checkout https://svn.codehaus.org/geoserver/trunk/configuration/release
Now we can go to the web module and ask it to use the configuration we just checked out. [/dev/geoserver/web]mvn install -DconfigId=release -DconfigDirectory=../../configuration Running the ServerRunning with JettyMaven comes with built-in support for Jetty via plug-in. To run GeoServer with Jetty:
Open up your browser Congrats!
For more information check out Maven Build Reference.
|
![]() |
Document generated by Confluence on Jan 16, 2008 23:26 |